package tech.lingrui.mnpanonymousservice.model.message;

import lombok.Data;
import lombok.EqualsAndHashCode;
import tech.lingrui.mnpanonymousservice.model.bean.BaseModel;


/**
 * 消息基类
 *
 * @author lqs2
 * @date 2018/11/25, Sun
 */
@EqualsAndHashCode(callSuper = false)
@Data
public class BaseMessage extends BaseModel {


    /**
     * 发送给所有人
     */
    public static final int MSY_TYPE_TO_ALL = 1;

    /**
     * 发给单个用户
     */
    public static final int MSY_TYPE_TO_ONE = 0;


    /**
     * 游戏消息
     */
    public static final int MSY_TYPE_GAME = 2;

    /**
     * 回合消息
     * */
    public static final  int MSY_TYPE_ROUND = 3;

    /**
     *游戏结束返回信息消息
     * */
    public static final  int MSY_TYPE_GAME_OVER= 4;

    /**
     * 错误消息
     */
    public static final int MSY_TYPE_ERROR = -1;


    /**
     * 消息类型
     */

    private int type;
    /**
     * 消息内容
     */
    private String content;


}
